home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\INCLUDE\DCC.H < prev    next >
C/C++ Source or Header  |  1995-01-03  |  2KB  |  78 lines

  1. /*
  2.  * dcc.h: Things dealing client to client connections. 
  3.  *
  4.  * Written By Troy Rollo <troy@plod.cbme.unsw.oz.au> 
  5.  *
  6.  * Copyright(c) 1991 
  7.  *
  8.  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
  9.  *
  10.  * @(#)$Id: dcc.h,v 1.6 1994/07/26 15:33:23 mrg Stab $
  11.  */
  12.  
  13. /*
  14.  * this file must be included after irc.h as i needed <sys/types.h>
  15.  * <netinet/in.h> and <apra/inet.h>
  16.  */
  17.  
  18. #ifndef _DCC_H_
  19. #define _DCC_H_
  20.  
  21. #define DCC_CHAT    ((unsigned) 0x0001)
  22. #define DCC_FILEOFFER    ((unsigned) 0x0002)
  23. #define DCC_FILEREAD    ((unsigned) 0x0003)
  24. #define DCC_TALK    ((unsigned) 0x0004)
  25. #define DCC_SUMMON    ((unsigned) 0x0005)
  26. #define    DCC_RAW_LISTEN    ((unsigned) 0x0006)
  27. #define    DCC_RAW        ((unsigned) 0x0007)
  28. #define DCC_TYPES    ((unsigned) 0x000f)
  29.  
  30. #define DCC_WAIT    ((unsigned) 0x0010)
  31. #define DCC_ACTIVE    ((unsigned) 0x0020)
  32. #define DCC_OFFER    ((unsigned) 0x0040)
  33. #define DCC_DELETE    ((unsigned) 0x0080)
  34. #define DCC_TWOCLIENTS    ((unsigned) 0x0100)
  35. #define DCC_STATES    ((unsigned) 0xfff0)
  36.  
  37. typedef    struct    DCC_struct
  38. {
  39.     unsigned    flags;
  40.     int    read;
  41.     int    write;
  42.     int    file;
  43.     long    filesize;
  44.     char    *description;
  45.     char    *user;
  46.     char    *othername;
  47.     struct    DCC_struct    *next;
  48.     struct    in_addr    remote;
  49.     u_short    remport;
  50.     long    bytes_read;
  51.     time_t    bytes_sent;
  52.     time_t    lasttime;
  53.     time_t    starttime;
  54.     char    talkchars[3];
  55. }    DCC_list;
  56.  
  57. #define DCC_TALK_CHECK 0
  58. #define DCC_TALK_INVITE 1
  59. #define DCC_TALK_ANNOUNCE 2
  60. #define DCC_TALK_DELETE_LOCAL 3
  61. #define DCC_TALK_DELETE_REMOTE 4
  62. #define DCC_TALK_SUMMON 5
  63. #define DCC_TALK_DELETE_SUMMON 6
  64.  
  65. extern    DCC_list    *dcc_searchlist();
  66. extern    void    dcc_erase();
  67. extern    void    register_dcc_offer();
  68. extern    void    process_dcc();
  69. extern    void    dcc_list();
  70. extern    void    dcc_chat_transmit();
  71. extern    void    dcc_message_transmit();
  72. extern    int    send_talk_control();
  73. extern    void    close_all_dcc();
  74. extern    void    set_dcc_bits();
  75. extern    void    dcc_check();
  76.  
  77. #endif /* _DCC_H_ */
  78.